#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
配置文件
请在使用前填写相应的API密钥和配置信息
"""

# Unsplash API配置
# 注册地址: https://unsplash.com/developers
UNSPLASH_ACCESS_KEY = "YOUR_UNSPLASH_ACCESS_KEY_HERE"

# Pixabay API配置  
# 注册地址: https://pixabay.com/api/docs/
PIXABAY_API_KEY = "YOUR_PIXABAY_API_KEY_HERE"

# 阿里云OSS配置
# 控制台地址: https://oss.console.aliyun.com/
OSS_ACCESS_KEY_ID = "YOUR_OSS_ACCESS_KEY_ID_HERE"
OSS_ACCESS_KEY_SECRET = "YOUR_OSS_ACCESS_KEY_SECRET_HERE"
OSS_ENDPOINT = "oss-cn-shanghai.aliyuncs.com"  # 根据你的区域修改
OSS_BUCKET_NAME = "flower-1"  # 你的bucket名称

# 图片配置
IMAGE_QUALITY = 85  # JPEG质量 (1-100)
MAX_IMAGE_WIDTH = 800  # 最大宽度
MAX_IMAGE_HEIGHT = 1200  # 最大高度

# 爬取配置
IMAGES_PER_CATEGORY = 20  # 每个类别爬取的图片数量
REQUEST_DELAY = 0.5  # 请求间隔（秒）
DOWNLOAD_TIMEOUT = 30  # 下载超时时间（秒）

# 鲜花类别
FLOWER_CATEGORIES = [
    "red roses",
    "white roses", 
    "pink roses",
    "yellow roses",
    "tulips",
    "sunflowers",
    "lilies",
    "orchids",
    "daisies",
    "carnations",
    "peonies",
    "hydrangeas",
    "chrysanthemums",
    "lavender"
]